﻿@model PilotProject.Question
@{
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


@{
    Html.EnableClientValidation(true);
}



@using (Html.BeginForm())
{
    @Html.ValidationSummary()

    <legend style="margin-left:10px;color:#5A7DDE;font-size:14px;"> Create New Question </legend>
           

        <div id="combo">
            @Html.DropDownList("TestEngineId", "-Select Type-") 
        </div>


 <div style="margin-top:15px; margin-left:10px;">

        <div class="editor-label">
           @Html.LabelFor(model => model.QuestionText)
        </div>         
        <div id="createQuestion">
           @Html.TextAreaFor(model => model.QuestionText, new { @class = "wideQuestion" })     
        </div>


        
        <div class="editor-label">
            @Html.Label("Correct Option")
        </div>
        <div class="editor-field">        
         @Html.TextBoxFor(model => model.Optiontextcorrect1.OptionText, new { @class = "correctOption" })     
        </div>

       <div class="editor-label">
            @Html.Label("Incorrect Option")
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Optiontextincorrect2.OptionText, new { @class = "wideOption" })
        </div>

        <div class="editor-label">
             @Html.Label("Incorrect Option ")
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Optiontextincorrect3.OptionText, new { @class = "wideOption" })
        </div>
         <div class="editor-label">
             @Html.Label("Incorrect Option ")
        </div>
        <div class="editor-field">
           @Html.TextBoxFor(model => model.Optiontextincorrect4.OptionText, new { @class="wideOption" })        
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsActive)
        </div>
        <div class="editor-field">
            @Html.CheckBoxFor(model => model.IsActive, new { @checked = "checked" })
         </div>


          
          
             
            <span style="margin-top:15px;">    <p> <input type="submit" value="Create" class="questionButton"/></p></span>
              
    </div>
 
}

<div style="margin-left:10px;margin-top:20px;">
    @Html.ActionLink("Back to List", "Index")
</div>


        <script type="text/javascript">
            function dosmth() {
                $("#testEngines").val($("select#filter").val());
            }
        </script>